PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-09-13 10:23:45.966474+00:00 (UTC)
In US/Central Time, this is 2024-09-13 05:23:45.966474-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/e669ea7c52f7f0f67600ad23546789383e860a4fb1ada0023f9c3c4ff1b021b1.png
We are just generating a random time serie here.
../../_images/2be2331378a96ee1c9cf8b4e643ea3f0fa4cfcbd26e4da1b7725db6f7cb16d4f.png
../../_images/3dd6f1bb5d39e294829b9dd9acb8be0b2494441a991937fe6f36f2d053548748.png